<%@ page contentType="text/xml;charset=UTF-8"
         language="java"
         import="com.compuvest.admin.request.MultiPart,
                org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%
//f9c4a1e6328158958d433aedf044
    if(ServletFileUpload.isMultipartContent(request)) {
        // update file
        int result = 0;
        String fileName = "";
        MultiPart mpart = new MultiPart(request, 4194304); // 4Meg
        if(mpart.getParameter("compuvestid") != null && "f9c4a1e6328158958d433aedf044".equals(mpart.getParameter("compuvestid"))) {
            fileName = mpart.getParameter("filename");
            if(fileName != null) {
                result = mpart.saveExcelFile("excel", "/var/lighttpd/1.4/docroot/advert/excel/", fileName);
            }
        }
%>

<%--<?xml version='1.0' encoding='UTF-8'?>--%>
<status>
 <sessionid><%= request.getSession().getId() %></sessionid>
 <filename><%= fileName %></filename>
 <code><%= result %></code>
</status>

<%
    }
%>
